<?php
require_once ('CommonUtils.php');

class Keywords extends BaseModel {

	public static $_instance = null;

	protected $_primary = "id";

	protected $_name = "keywords";

	protected $arrobj = null;
	
	protected $simpleArrobj = null;

	public function abstractLoad($id) {}

	public function createDefaultData() {}

	public static function getInstance() {
		$tmp = new Keywords(null);
		self::$_instance = $tmp;
		require_once 'ObjectCache.php';
		$objCache = new ObjectCache ( self::$_instance, CacheConfig::$staticCacheLifeTime);
		return $objCache->getCache();
	}
	
	public function getKeywords() {
		if ($this->arrobj !== null) {
			return $this->arrobj;
		}
		$statement = $this->select ();
		$result = $this->fetchAll ( $statement );
		$arrobj = $result->toArray();
		$this->arrobj = $arrobj;
		return $arrobj;
	}
}
?>
